package com.github.pig.admin.model.zhgl.community;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 小区基本信息表
 * </p>
 *
 * @author xiaosa
 * @since 2018-06-11
 */
@TableName("community_info")
@Data
public class CommunityInfo extends Model<CommunityInfo> {

    private static final long serialVersionUID = 1L;
    /**
     * 唯一标识
     */
    @TableId(value = "id")
    private Integer id;
    /**
     * 园区名称
     */
    @TableField("name")
    private String name;
    /**
     * 经度
     */
    @TableField("longitude")
    private String longitude;
    /**
     * 纬度
     */
    @TableField("latitude")
    private String latitude;
    /**
     * 详细地址
     */
    @TableField("address")
    private String address;
    /**
     * 省
     */
    @TableField("pcode")
    private String pcode;
    /**
     * 市
     */
    @TableField("citycode")
    private String citycode;
    /**
     * 县
     */
    @TableField("adcode")
    private String adcode;
    /**
     * 公司数量
     */
    @TableField("company_number")
    private Integer companyNumber;
    /**
     * 园区负责人
     */
    @TableField("contact_name")
    private Integer contactName;
    /**
     * 联系电话
     */
    @TableField("telphone")
    private Integer telphone;

    @TableField("del_flag")
    private String delFlag;
    @TableField("create_date")
    private Date createDate;
    @TableField("create_user")
    private String createUser;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CommunityInfo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", longitude='" + longitude + '\'' +
                ", latitude='" + latitude + '\'' +
                ", address='" + address + '\'' +
                ", companyNumber=" + companyNumber +
                ", delFlag='" + delFlag + '\'' +
                ", createDate=" + createDate +
                ", createUser='" + createUser + '\'' +
                '}';
    }
}
